package com.itstyle.quartz.service.dao;

import java.util.List;

import com.itstyle.quartz.entity.*;
import org.quartz.JobKey;
import org.quartz.SchedulerException;

public interface IJobService {

    Result listQuartzEntity(QuartzEntity quartz, Integer pageNo, Integer pageSize) throws SchedulerException;
    
    Long listQuartzEntity(QuartzEntity quartz);

    void save(QuartzEntityVo quartzVo) throws Exception;

    int saveJobKettle(QuartzEntityVo quartzvo, JobKey key)throws Exception;

    int updateJobKettle(QuartzEntityVo quartzvo, JobKey key)throws Exception;

    List<QuartzEntityDt> listJobKettle(JobKey key);

    int deleteJobKettle(JobKey key);

    public List<QuartzEntityBatchDt> listJobKettleBatch(JobKey key);

    public Result listJobKettleLogs(QuartzEntityLogsDt quartzEntityLogsDt,Integer pageNo, Integer pageSize);

    public int saveJobKettleLogs(QuartzEntityLogsDt quartzvo) ;

    public int updateJobKettleLogs(QuartzEntityLogsDt quartzvo,JobKey key,String quartzid) ;

    public List<QuartzTaskCountDt> listJobSum();

    public int saveYcData(String nativeSql);

    public int saveText(String nativeSql);

    List findOne(QuartzEntityVo quartzVo);
}
